﻿using System;
using System.Collections.Generic;
using System.Text;
using EnvDTE80;
using TSVNAddin.VS;
using EnvDTE;

namespace TSVNAddinUtils
{
	public class DTEAdapter
	{
		private readonly DTE2 _Application;

		public DTEAdapter(DTE2 application)
		{
			_Application = application;
		}

		public virtual void Quit()
		{
			_Application.Quit();
		}

		public virtual MenuBarAdapter GetMenuBar()
		{
			return new MenuBarAdapter(_Application);
		}

		public virtual ToolBarAdapter GetToolBar()
		{
			return new ToolBarAdapter(_Application);
		}
	}
}
